﻿<%@ Page Language="C#" MasterPageFile="~/ExtraOpdrachten.Master" AutoEventWireup="true" CodeBehind="Opdracht12.aspx.cs" Inherits="ExtraOpdrachten.Opdracht12" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1>Opdracht 12 - De oudste en jongste persoon</h1>
    <div style="border: solid 5px red; border-radius: 25px; width: 30%; padding: 25px;">

        <table style="width: 100%;">
            <tr>
                <td>Roepnaam</td>
                <td>
                    <asp:TextBox ID="txtFirstName" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>Tussenvoegsels</td>
                <td>
                    <asp:TextBox ID="txtMiddleName" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>Achternaam</td>
                <td>
                    <asp:TextBox ID="txtLastName" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>Geboortedatum</td>
                <td>Dag 
                        <asp:DropDownList ID="ddlDay" runat="server"></asp:DropDownList>
                    Maand 
                        <asp:DropDownList ID="ddlMonth" runat="server"></asp:DropDownList>
                    Jaar 
                        <asp:DropDownList ID="ddlYear" runat="server"></asp:DropDownList>
                    <br />
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:Button ID="btnAdd" runat="server" Text="Voeg toe" OnClick="btnAdd_Click" />
                </td>
            </tr>
        </table>
        <br />
        <asp:Button ID="btnShowResult" runat="server" Text="Toon resultaat" OnClick="btnShowResult_Click" />
        <br />
        <br />
        <asp:Label ID="lblResult" runat="server"></asp:Label>
        <br />
        <asp:Label ID="lblError" runat="server" ForeColor="Red"></asp:Label>
    </div>
</asp:Content>
